package com.niiwoo.civet.account.dao.mapper;

import com.niiwoo.civet.account.dao.entity.AccountCheckingAllbalance;
import com.niiwoo.civet.account.dto.request.AccountCheckingAllbalanceRequestDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccountCheckingAllbalanceMapperExt extends AccountCheckingAllbalanceMapper {
    /**
     * 分页查询对象数据
     * @param accountCheckingAllbalanceRequestDTO
     * @return
     */
    public List<AccountCheckingAllbalance> queryCheckingAllBalancePage(AccountCheckingAllbalanceRequestDTO accountCheckingAllbalanceRequestDTO);

    /**
     * 根据比对记录ID修改状态
     * @param checkingRecordId
     * @param status
     * @return
     */
    int updateStatusByCheckingRecordId(@Param("checkingRecordId") Long checkingRecordId, @Param("status") Byte status);

    /**
     * 根据对账记录删除ID
     * @param checkingRecordId
     * @return
     */
    int deleteByCheckingRecordId(@Param("checkingRecordId") Long checkingRecordId);

    /**
     * 分页查询对象数据
     * @param accountCheckingAllbalanceRequestDTO
     * @return
     */
    public List<AccountCheckingAllbalance> queryCheckingAllBalanceByUserNo(AccountCheckingAllbalanceRequestDTO accountCheckingAllbalanceRequestDTO);

}